package com.xcj.controller;


import com.xcj.domin.Account;
import com.xcj.service.AccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/account")
@Api(tags = "用户管理接口")
public class AccountController {

    @Resource
    private AccountService accountService;

    @GetMapping("/list")
    @ApiOperation("查询系统内所有用户信息")
    public List<Account> List(){
        return accountService.list();
    }
}
